|
|
|
|
|
|
|
Figure 1.14.
Adding the code to access the Animation control. |
|
|
|
|
|
|
|
|
Finally, execute your application and click the Start button. You should see the file-copy animation as shown in Figure 1.15. When you're ready, click the Stop button to end the animation. |
|
|
|
|
|
|
|
|
Figure 1.15.
Informing the user that a file-copy
process is in progress. |
|
|
|
|
|
|
|
|
In addition to playing the animation until your code issues the Stop method, you can set three optional parameters of the Animation control in this order: |
|
|
|
|
|
|
|
|
Repeat specifies the numbers of times the animation will be repeated. |
|
|
|
|
|
|
|
|
Start sets the frame where the animation will start. |
|
|
|
|
|
|
|
|
Stop sets the frame where the animation will end. |
|
|
|
|
|